// var a = [null,undefined,2.5,'666'];
// console.log(a.toLocaleString());

// toLocaleString()  toString() valueOf() 方法的区别
var person1 = {
	toLocaleString : function () {
		return 'niko';
	},
	toString : function () {
		return 'niko';
	}
};

var person2 = {
	toLocaleString : function () {
		return 'Gri';
	},
	toString : function () {
		return 'Gre';
	}
};

var person = [person1,person2];
console.log(person);
console.log(person.toLocaleString());
console.log(person.toString());